package com.mmm.station.security.method;

import com.mmm.station.security.entity.PermissionInfo;
import com.mmm.station.security.entity.Token;

/**
 * Created by mmm on 2016/12/6.
 */
public interface Realm {
    /**
     *获得权限
     * @param o
     * @return
     */
     PermissionInfo getPermission(Object user);

    /**
     *登录验证
     * @param userName
     * @param password
     * @param conditions
     * @return
     */
     Object getAnthInfo(Token token);
}
